﻿using System;
using System.Net.Http;
using System.Threading.Tasks;
using NUnit.Framework;

namespace WebApiSecurity.Tests
{
    [TestFixture]
    public class Step01
    {
        [Test]
        public async Task Can_call_the_api()
        {
            var client = new HttpClient {BaseAddress = new Uri("http://localhost.fiddler:49623/")};
            var response = await client.GetAsync("api/values");
            var result = await response.Content.ReadAsAsync<string[]>();

            foreach (var value in result) Console.WriteLine(value);
        }
    }
}
